package com.core.dao.mybatismysql;

import com.core.bean.Receiving;
import com.core.bean.Shipments;
import com.core.dao.IGoodsDao;
import com.core.dao.IReceivingDao;
import com.core.dao.IShipmentsDao;
import com.core.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class ReceivingDao implements IReceivingDao {

    @Override
    public int add(Receiving entity) throws Exception {
        SqlSession session = MybatisUtils.getSession();
        IReceivingDao receivingDao = session.getMapper(IReceivingDao.class);
        int add = receivingDao.add(entity);
        return add;
    }

    @Override
    public int remove(String id) throws Exception {
        return 0;
    }

    @Override
    public int modify(Receiving entity) throws Exception {
        return 0;
    }

    @Override
    public Receiving findEntityById(String id) throws Exception {
        return null;
    }
}
